<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition template="../templates/hub.xhtml">
	<ui:define name="titre"></ui:define>
	<ui:define name="hub_page">

		<!-- Inclusion du bloc de navigation simple. -->
		<ui:include src="../blocs/inc_navigation_message.xhtml" />

		<h:panelGrid id="report_panel" style="width:100%;"
			columnClasses="_left_top">
			<h:form id="request_report_form">
				<div id="request_report_div" style="width: 100%; height: 50px;">
					<h:panelGrid columns="1" styleClass="print_panel_request">
						<h:panelGrid columns="17">
							<h:panelGroup>
								<h:outputText value="#{lbl['print.doc.common.date.1']}" /> : 
							</h:panelGroup>

							<rich:calendar id="dateStat" inputSize="10" showFooter="false"
								value="#{reportManaged.criterion.date}"
								todayControlMode="hidden" datePattern="dd/MM/yyyy"
								required="true" requiredMessage="#{err['report.date.required']}" />

							<h:graphicImage value="../../imgs/spacer_10x1.gif" />

							<h:panelGroup>
								<h:outputText value="#{lbl['print.doc.common.au']}" /> : 
							</h:panelGroup>

							<rich:calendar id="dateStatEnd" inputSize="10" showFooter="false"
								value="#{reportManaged.criterion.dateEnd}" required="true"
								requiredMessage="#{err['report.date.end.required']}"
								todayControlMode="hidden" datePattern="dd/MM/yyyy" />

							<h:graphicImage value="../../imgs/spacer_10x1.gif" />

							<a4j:commandButton value="#{lbl['common.button.validate']}"
								action="#{reportManaged.createCsvReporting}"
								render="csv_target_panel" />
						</h:panelGrid>
					</h:panelGrid>
				</div>
			</h:form>

			<!-- Insertion de l'objet csv dans le document. -->
			<ui:include src="../blocs/inc_download_cvs_file.xhtml" />
		</h:panelGrid>
	</ui:define>
</ui:composition>
</html>